package g.beny.framework.constant;

/**
 * 系统常量
 * @author gson
 *
 */
public final class Constant {
	
	/**
	 * 系统配置
	 * @author gson
	 *
	 */
	public final class Config{
		/**
		 * 系统用户session保存的key值
		 */
		public static final String PRO_USER_SESSION_KEY = "pro_user";
		/**
		 * 系统管理用户登陆session的key值
		 */
		public static final String MGR_USER_SESSION_KEY = "mgr_user";
		/**
		 * 验证码key
		 */
		public static final String VERIFICATION_CODE_KEY = "verification_code";
		/**
		 * 系统内置账户
		 */
		public static final String SYSTEM_ACCOUNT = "SYSTEM_ACCOUNT";
	}
	
	/**
	 * 自定义HttpCode
	 * @author gson
	 *
	 */
	public final class HttpCode{
		/**
		 * 未登录code
		 */
		public static final int NO_LOGIN = 901;
		/**
		 * 未授权
		 */
		public static final int NO_PERMISSIONS = 902;
	}
	
	/**
	 * 分页字段
	* @ClassName
	*	Page
	* @Description
	*	TODO
	* @author 
	*	gson
	* @date 
	*	2012-8-20 下午11:51:28
	*
	 */
	public final class Page{
		public static final String PAGE = "page";
		public static final String ROWS = "rows";
		public static final String SORT = "sort";
		public static final String ORDER = "order";
	}
}
